#ifndef __I2C_H
#define __I2C_H

#include "main.h"

#define 	I2C1_PORT		GPIOE
#define 	SCL1_PIN		GPIO_PIN_0
#define 	SDA1_PIN		GPIO_PIN_1


void I2CStart(void);
void I2CStop(void);
unsigned char I2CWaitAck(void);
void I2CSendAck(void);
void I2CSendNotAck(void);
void I2CSendByte(unsigned char cSendByte);
unsigned char I2CReceiveByte(void);
void I2CInit(void);

#endif
